<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>Vue示例</title>
</head>

<body>
<div id="app">

</div>
<script charset="utf-8" src="../js/vue.min.js" type="text/javascript"></script>
<script type="text/javascript">
    // 全局注册
    Vue.directive('focus', {
        // 指令选项
    });

    // 局部注册
    var app = new Vue({
        el: '#app',
        directives: {
            focus: {
                // 指令选项
            }
        }
    })
</script>
</body>

</html>